package com.ishare.common.utils;

/***
 *@description: 用户工具类
 * @author: DENGMINGWEN
 * @time: 2020/8/10 10:36
 */
public class InternalUserUtil {

    private static ThreadLocal<Object> userLocal = new ThreadLocal<>();

    public static Object getInternalUser() {
        return userLocal.get() ;
    }

    public static void setInternalUser(Object o) {
        userLocal.set(o);
    }

    public static long now() {
        return System.currentTimeMillis();
    }



}
